import time


def fun():
    year="2018"
    month="03"
    day='05'
    str=year+"-"+month+"-"+day
    try:
        time.strptime(str, "%Y-%m-%d")
        return True
    except:
         return False
print(fun())